/*
 * @Author: 来自火星的码农 15122322+heyzhi@user.noreply.gitee.com
 * @Date: 2025-10-02 20:16:27
 * @LastEditors: 来自火星的码农 15122322+heyzhi@user.noreply.gitee.com
 * @LastEditTime: 2025-10-03 12:48:18
 * @FilePath: /GateServer/tests/test_config.cc
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
#include "../src/util/config.h"
#include <yaml-cpp/yaml.h>

Yizhi::ConfigVar<std::string>::ptr g_host_value = Yizhi::ConfigMgr::Lookup("system.port", std::string("127.0.0.1"),"");
int main(){
    YAML::Node node=YAML::LoadFile("/home/heyizhi/GateServer/bin/config/config.yml");
    LOG_INFO(g_host_value->getvalue());
    Yizhi::ConfigMgr::LoadFromYaml(node);
    LOG_INFO(g_host_value->getvalue());
    return 0;
}